package com.qf.service.impl;

import com.qf.dao.OrderDao;
import com.qf.pojo.Order;
import com.qf.service.OrderService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service("OrderService")
        public class OrderServiceImpl implements OrderService{

        @Autowired(required = false)
        private OrderDao orderDao;


    @Override
        public List<Order> selectAll() {

            return orderDao.select();
        }

    @Override
    public Order selectOne(int id) {
        return orderDao.selectOne(id);
    }

    @Override
    public int deleteOne(int id) {

        return orderDao.deleteOne(id);
    }

    @Override
    public int update(Order order) {

        return orderDao.update(order);
    }





}

